package com.liwenfeng.dodizhu;

public class Card {
    private String num ;
    private String color;
    private int grade;
    private Double random;

    public Card() {
    }

    public Card(String num, String color, int grade) {
        this.num = num;
        this.color = color;
        this.grade = grade;
    }

    public Double getRandom() {
        return random;
    }

    public void setRandom(Double random) {
        this.random = random;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return color + num +"\t";
    }

}
